<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\db\ActiveRecord;
/**
 * Created by PhpStorm.
 * User: zhn
 * Date: 2015/8/13
 * Time: 16:18
 */
class Login extends ActiveRecord{
    public static function tableName(){
        return '{{%admin}}';
    }
    public function rules()
    {
        return [
            ['user', 'required'],
            ['password', 'required'],
        ];
    }
}
?>